# ThinFeature project makefile

cmake_minimum_required(VERSION 3.1)
project(particle2mesh)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

# libigl
option(LIBIGL_USE_STATIC_LIBRARY "Use libigl as static library" OFF)
option(LIBIGL_WITH_ANTTWEAKBAR       "Use AntTweakBar"    OFF)
option(LIBIGL_WITH_CGAL              "Use CGAL"           OFF)
option(LIBIGL_WITH_COMISO            "Use CoMiso"         OFF)
option(LIBIGL_WITH_CORK              "Use Cork"           OFF)
option(LIBIGL_WITH_EMBREE            "Use Embree"         OFF)
option(LIBIGL_WITH_LIM               "Use LIM"            OFF)
option(LIBIGL_WITH_MATLAB            "Use Matlab"         OFF)
option(LIBIGL_WITH_MOSEK             "Use MOSEK"          OFF)
option(LIBIGL_WITH_OPENGL            "Use OpenGL"         ON)
option(LIBIGL_WITH_OPENGL_GLFW       "Use GLFW"           ON)
option(LIBIGL_WITH_OPENGL_GLFW_IMGUI "Use ImGui"          OFF)
option(LIBIGL_WITH_PNG               "Use PNG"            OFF)
option(LIBIGL_WITH_PYTHON            "Use Python"         OFF)
option(LIBIGL_WITH_TETGEN            "Use Tetgen"         OFF)
option(LIBIGL_WITH_TRIANGLE          "Use Triangle"       OFF)
option(LIBIGL_WITH_VIEWER            "Use OpenGL viewer"  ON)
option(LIBIGL_WITH_XML               "Use XML"            OFF)

find_package(LIBIGL REQUIRED QUIET)

# Add your project files

set(SRC_LIST *.cpp particle2realflowUtil/*.cpp)
file(GLOB SRCFILES ${SRC_LIST})
file(GLOB HEADERS *.h particle2realflowUtil/*.h)

file(GLOB HeaderFile1 *.h)
file(GLOB HeaderFile2 particle2realflowUtil/*.h)
file(GLOB SrcFile1 *.cpp)
file(GLOB SrcFile2 particle2realflowUtil/*.cpp)

source_group("Headers Files" FILES ${HeaderFile1} )
source_group("Headers Files\\slToolsHeaders" FILES ${HeaderFile2} )
source_group("Source Files" FILES ${SrcFile1})
source_group("Source Files\\slTools" FILES ${SrcFile2})

add_executable(${PROJECT_NAME}_bin ${SRCFILES} ${HEADERS})
target_link_libraries(${PROJECT_NAME}_bin igl::core igl::opengl_glfw)
